package com.zhengjiang.pattern.demo.observer;

import java.util.Observable;

public class NewsOffice extends Observable {

    public void publish(String news) {
        this.setChanged();
        this.notifyObservers(news);
    }



}
